﻿using Aliphant.Interfaces;
using Aliphant.Mvvm.XEvent.Instance;
using Aliphant.Mvvm.XEvent.Interface;
using Aliphant.Mvvm.XEvent.Ioc;
using Aliphant.UI.Wallpaper.Views;

namespace Aliphant.UI.Wallpaper
{
    public class WallpaperUIModule : IUIModule
    {
        public static IUIContainer Container = new UIContainer();
        public static IEventManager EventAgent = new EventManagerAgent();

        /// <summary>
        /// 壁纸UI界面模块
        /// </summary>
        /// <param name="container"></param>
        public void Register(IUIContainer container)
        {
            RegisterIoC();
            container.RegisterNavigation<WallpaperPage>("wallpaper");
        }

        private void RegisterIoC()
        {
            Container.RegisterNavigation<PictureList>("pictureList");
            Container.RegisterNavigation<Preview>("preview");           // 预览模块
        }
    }
}
